pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em;
}
code.hljs {
  padding: 3px 5px;
  font-size: 18px;
}
/*!
  Theme: a11y-dark
  Author: @ericwbailey
  Maintainer: @ericwbailey

  Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css
*/
.hljs {
  background: #2b2b2b;
  color: #f8f8f2;
}
/* Comment */
.hljs-comment,
.hljs-quote {
  color: #d4d0ab;
}
/* Red */
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-regexp,
.hljs-deletion {
  color: #ffa07a;
  cursor: pointer;
}
/* Orange */
.hljs-number,
.hljs-built_in,
.hljs-literal,
.hljs-type,
.hljs-params,
.hljs-meta,
.hljs-link {
  color: #f5ab35;
  cursor: pointer;
}
/* Yellow */
.hljs-attribute {
  color: #ffd700;
  cursor: pointer;
}
/* Green */
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
  color: #abe338;
  cursor: pointer;
}
/* Blue */
.hljs-title,
.hljs-section {
  color: #00e0e0;
  cursor: pointer;
}
/* Purple */
.hljs-keyword,
.hljs-selector-tag {
  color: #dcc6e0;
  cursor: pointer;
}
.hljs-emphasis {
  font-style: italic;
  cursor: pointer;
}
.hljs-strong {
  font-weight: bold;
  cursor: pointer;
}
@media screen and (-ms-high-contrast: active) {
  .hljs-addition,
  .hljs-attribute,
  .hljs-built_in,
  .hljs-bullet,
  .hljs-comment,
  .hljs-link,
  .hljs-literal,
  .hljs-meta,
  .hljs-number,
  .hljs-params,
  .hljs-string,
  .hljs-symbol,
  .hljs-type,
  .hljs-quote {
    color: highlight;
    cursor: pointer;
  }
  .hljs-keyword,
  .hljs-selector-tag {
    font-weight: bold;
    cursor: pointer;
  }
}

.add_status {
  background-color: rgba(0, 255, 0, 0.3);
}

.update_status {
  background-color: rgba(0, 0, 255, 0.3);
}

.remove_status {
  background-color: rgba(255, 0, 0, 0.3);
}
.flag_status_tag {
  display: inline-block;
  border: 1px solid #666666;
  line-height: 14px;
  text-align: center;
  cursor: text;
  padding: 3px 4px;
  border-radius: 3px;
  margin-left: 12px;
  margin-right: 12px;
}
.flag_status_tag.add {
  color: #abe338;
}
.flag_status_tag.update {
  color: #abe338;
}
.flash_anim {
  animation: flash 500ms;
}
@keyframes flash {
  0% {
    opacity: 1;
  }
  /* 25% {
    opacity: 0.1;
  } */
  50% {
    opacity: 0.5;
  }
  /* 75% {
    opacity: 0.1;
  } */
  100% {
    opacity: 1;
  }
}

#data-form-drawer-btn {
  z-index: 999999;
  --size: 46px;
  width: var(--size);
  height: var(--size);
  background-color: #ffffff;
  border-radius: 50%;
  position: fixed;
  bottom: 60px;
  right: 10px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  &[aria-status="close"]::after {
    content: "打开";
  }
  &[aria-status="open"]::after {
    content: "关闭";
  }
  &::after {
    color: #333333;
    text-align: center;
    display: block;
    font-size: 13px;
    font-weight: 600;
  }
}

#data-form-drawer {
  $paddingBlock: 16px;
  $headerHeight: 48px;
  $fontColor: #333333;
  $lineHeight: 32px;
  position: fixed;
  top: 0;
  left: 0;
  // position: fixed;
  // top: 100px;
  // left: 100px;
  width: 360px;
  height: 360px;
  background-color: #15181e;
  // transition: all linear 0.05s;
  overflow: hidden;
  z-index: 999999;
  border-radius: 12px;
  padding: 0px 10px 10px 10px;
  box-shadow: 2px 2px 8px #27262660;
  transform: translate(var(--x), var(--y));
  .form-data-drawer-wrap {
    height: 100%;
    position: relative;
    .form-data-drawer-header {
      height: $headerHeight;
      border-bottom: 1px solid rgb(31, 31, 32);
      padding: 0 $paddingBlock;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background-color: #15181e;
      cursor: move;
      .form-data-drawer-header-btns {
        display: flex;
        align-items: center;
        column-gap: 6px;
        .form-data-drawer-close-btn,
        .form-data-drawer-open-btn {
          margin-top: 6px;
          cursor: pointer;
        }
      }
      .form-data-drawer-title {
        color: rgba(255, 255, 255, 0.452);
      }
    }
    .form-data-drawer-body {
      height: calc(100% - $headerHeight);
      overflow: auto;
      display: flex;

      --sb-track-color: #1f1f1f;
      --sb-thumb-color: #232e33;
      --sb-size: 18px;
      scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
      background: #15181e;
      &::-webkit-scrollbar {
        width: var(--sb-size);
      }
      &::-webkit-scrollbar-track {
        background: var(--sb-track-color);
        border-radius: 1px;
      }
      &::-webkit-scrollbar-thumb {
        background: var(--sb-thumb-color);
        border-radius: 1px;
        border: 2px solid #35373a;
        cursor: pointer;
      }

      .form-data-drawer-tools {
        color: #f8f8f2;
        margin-top: 4px;
        padding: 1em 0px 1em 0px;
        box-sizing: border-box;
        line-height: $lineHeight;
      }
      .form-data-drawer-json-view {
        flex: 1;
        pre {
          margin-top: -16px;
          code.hljs {
            line-height: $lineHeight;
          }
        }
      }
    }
  }
  .resize-controller {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 10px;
    height: 10px;
    background-color: transparent;
    cursor: se-resize;
  }

  #form-data-del-log {
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 10px;
    right: 20px;
    max-height: 120px;
    border-radius: 10px;
    overflow: auto;
    ul {
      list-style: none;
      margin: 0;
      padding: 10px 20px;
    }
  }
}

.toast {
  position: absolute;
  z-index: 999999;
  background-color: #f5ab35;
  color: #fff;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 18px;
  animation: backOutUp linear 1s;

  // animation-delay: 0.5s;
}
@keyframes backOutUp {
  0% {
    -webkit-transform: translateY(50px) scale(0.7);
    transform: translateY(50px) scale(0.7);
    opacity: 0.7;
  }

  25% {
    -webkit-transform: translateY(0px) scale(0.7);
    transform: translateY(0px) scale(0.7);
    opacity: 1;
  }

  50% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

  75% {
    -webkit-transform: translateY(0px) scale(0.7);
    transform: translateY(0px) scale(0.7);
    opacity: 0.7;
  }

  100% {
    -webkit-transform: translateY(-700px) scale(0.7);
    transform: translateY(-700px) scale(0.7);
    opacity: 0.7;
  }
}
@keyframes backInUp {
  0% {
    -webkit-transform: translateY(1200px) scale(0.7);
    transform: translateY(1200px) scale(0.7);
    opacity: 0.7;
  }

  80% {
    -webkit-transform: translateY(0px) scale(0.7);
    transform: translateY(0px) scale(0.7);
    opacity: 0.7;
  }

  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}
.animate__heartBeat {
  -webkit-animation-name: heartBeat;
  animation-name: heartBeat;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  animation-duration: 1s;
}
@keyframes heartBeat {
  0% {
    -webkit-transform: translate(var(--x), var(--y)) scale(1);
    transform: translate(var(--x), var(--y)) scale(1);
  }

  14% {
    -webkit-transform: translate(var(--x), var(--y)) scale(1.3);
    transform: translate(var(--x), var(--y)) scale(1.3);
  }

  28% {
    -webkit-transform: translate(var(--x), var(--y)) scale(1);
    transform: translate(var(--x), var(--y)) scale(1);
  }

  42% {
    -webkit-transform: translate(var(--x), var(--y)) scale(1.3);
    transform: translate(var(--x), var(--y)) scale(1.3);
  }

  70% {
    -webkit-transform: translate(var(--x), var(--y)) scale(1);
    transform: translate(var(--x), var(--y)) scale(1);
  }
}

@keyframes bounceOutDown {
  20% {
    transform: translate3d(-20px, 20px, 0) scaleY(0.985)
      translate(var(--x), var(--y));
  }
  40%,
  45% {
    opacity: 1;
    transform: translate3d(20px, -20px, 0) scaleY(0.9)
      translate(var(--x), var(--y));
  }

  to {
    opacity: 0;
    transform: translate3d(-2500px, 3600px, 1000px) scale(0.2)
      translate(var(--x), var(--y));
  }
}
.animate__bounceOutDown {
  -webkit-animation-name: bounceOutDown;
  animation-name: bounceOutDown;
  animation-duration: 1s;
}

@keyframes bounceInUp {
  from,
  60%,
  75%,
  90%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  from {
    opacity: 0;
    -webkit-transform: translate3d(0, 3000px, 0) scaleY(5);
    transform: translate3d(0, 3000px, 0) scaleY(5);
  }

  60% {
    opacity: 1;
    -webkit-transform: translate3d(0, -20px, 0) scaleY(0.9);
    transform: translate3d(0, -20px, 0) scaleY(0.9);
  }

  75% {
    -webkit-transform: translate3d(0, 10px, 0) scaleY(0.95);
    transform: translate3d(0, 10px, 0) scaleY(0.95);
  }

  90% {
    -webkit-transform: translate3d(0, -5px, 0) scaleY(0.985);
    transform: translate3d(0, -5px, 0) scaleY(0.985);
  }

  to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
.animate__bounceInUp {
  -webkit-animation-name: bounceInUp;
  animation-name: bounceInUp;
  animation-duration: 1s;
  animation-fill-mode: initial;
}

@keyframes bounceIn {
  from,
  20%,
  40%,
  60%,
  80%,
  to {
    -webkit-animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    -webkit-transform: scale3d(0.9, 0.9, 0.9);
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    -webkit-transform: scale3d(1.03, 1.03, 1.03);
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    -webkit-transform: scale3d(0.97, 0.97, 0.97);
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}
.animate__bounceIn {
  -webkit-animation-duration: calc(1s * 0.75);
  animation-duration: calc(1s * 0.75);
  -webkit-animation-duration: calc(1s * 0.75);
  animation-duration: calc(1s * 0.75);
  -webkit-animation-name: bounceIn;
  animation-name: bounceIn;
}

.animate__pulse {
  -webkit-animation-name: pulse;
  animation-name: pulse;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  animation-duration: 1s;
}
@keyframes pulse {
  from {
    -webkit-transform: translate(var(--x), var(--y)), scale3d(1, 1, 1);
    transform: translate(var(--x), var(--y)), scale3d(1, 1, 1);
  }

  50% {
    -webkit-transform: translate(var(--x), var(--y)), scale3d(1.05, 1.05, 1.05);
    transform: translate(var(--x), var(--y)), scale3d(1.05, 1.05, 1.05);
  }

  to {
    -webkit-transform: translate(var(--x), var(--y)), scale3d(1, 1, 1);
    transform: translate(var(--x), var(--y)), scale3d(1, 1, 1);
  }
}
